/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.log.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;

/**
 * 积分项导入日志 实体类
 *
 * @author junxin
 * @since 2023-05-18
 */
@Data
@TableName("ts_integral_log")
@ApiModel(value = "IntegralLog对象", description = "积分项导入日志")
@EqualsAndHashCode(callSuper = true)
public class IntegralLogEntity extends TenantEntity {

	/**
	 * 乐观锁
	 */
	@ApiModelProperty(value = "乐观锁")
	private String revision;
	/**
	 * 用户编号
	 */
	@ApiModelProperty(value = "用户编号")
	private String userNumber;
	/**
	 * 用户姓名
	 */
	@ApiModelProperty(value = "用户姓名")
	private String userName;
	/**
	 * 年度
	 */
	@ApiModelProperty(value = "年度")
	private String year;
	/**
	 * 得分渠道
	 */
	@ApiModelProperty(value = "得分渠道")
	private String integralOrigin;
	/**
	 * 得分项目
	 */
	@ApiModelProperty(value = "得分项目")
	private String projectOrigin;
	/**
	 * 积分
	 */
	@ApiModelProperty(value = "获得积分")
	private Float integral;

	/**
	 * 积分分值
	 */
	@ApiModelProperty(value = "积分分值")
	private Float integralTotal;

	/**
	 * 学时
	 */
	@ApiModelProperty(value = "学时")
	private Float period;

	/**
	 * 考核结果
	 */
	@ApiModelProperty(value = "考核结果")
	private String result;
	/**
	 * 登记日期
	 */
	@ApiModelProperty(value = "登记日期")
	private String recordDate;
	/**
	 * 导入批次版本
	 */
	@ApiModelProperty(value = "导入批次版本")
	private String version;

	private Long userId;//用户id

	/**
	 * 积分产生类型(1 系统生成，2外部导入)
	 */
	@ApiModelProperty(value = "积分产生类型(1 系统生成，2外部导入)")
	private Integer integralGenerateType;

	/**
	 * 积分类型  根据枚举 IntegralType
	 */
	@ApiModelProperty(value = "积分类型")
	private Integer integralType;

	@ApiModelProperty(value = "积分产生的资源id(课程id、考试id等)")
	private Long integralResourcesId;

	@ApiModelProperty(value = "备注")
	private String remark;
}
